package com.lin.manager.sms.strategy.service.local;

import com.google.gson.Gson;
import com.lin.manager.sms.enums.PlatformEnum;
import com.lin.manager.sms.strategy.SendStrategy;
import lombok.extern.slf4j.Slf4j;

/**
 * @author linjiang
 * @date 2024/8/19
 * @fn
 */
@Slf4j
public class ControlStrategy implements SendStrategy {
    @Override
    public Boolean send(Object send) {
        log.info("发送【{}】成功", new Gson().toJson(send));
        return true;
    }

    @Override
    public PlatformEnum getPlatform() {
        return PlatformEnum.LOCAL;
    }
}
